//
//  TouchView.m
//  03-UIResponder
//
//  Created by 王道林 on 16/7/18.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"%@---------%s", [self class], __FUNCTION__);
    NSLog(@"self.view = %@", self.nextResponder);
    NSLog(@"VC: %@", self.nextResponder.nextResponder);
    NSLog(@"window: %@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIApplication: %@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIAppdaleate: %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"0000: %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
}


//- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    NSLog(@"%@---------%s", [self class], __FUNCTION__);
//}
//
//
//-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    NSLog(@"%@---------%s", [self class], __FUNCTION__);
//}












/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
